package com.forum.Service;

import org.apache.catalina.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@Component
@FeignClient(value = "SystemService")
public interface SysService {

//    @GetMapping("api/system/user/getUserByName")
    @GetMapping("user/getUserByName")
    String getUserByName(@RequestParam String username);
}
